package com.powerbank.financecenter;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 财务中心微服务启动类
 */
@SpringBootApplication(scanBasePackages = {"com.powerbank.financecenter", "com.powerbank.common"})
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.powerbank.common.client", "com.powerbank.financecenter.client"})
@EnableAsync
@EnableScheduling
@EnableTransactionManagement
public class FinanceCenterApplication {

    public static void main(String[] args) {
        SpringApplication.run(FinanceCenterApplication.class, args);
    }
}